package com.jpxx.jpscp.admin.system.service;

import com.jpxx.jpscp.admin.system.entity.Role;
import com.jpxx.jpscp.core.base.service.BaseService;

import java.util.List;

/**
 * @Description:
 * @author: Zhaopengfei
 * @copyright: 金鹏信息技术有限公司
 * @CreatedDate: 2018年03月14日 15:23
 * @Copyright: All rights Reserved，Designed By Jpsycn
 */
public interface RoleService extends BaseService<Role> {

    List<Role> getByUserId(String userId);

    List<Role> list(boolean showDelete);

    Role getById(String roleId);

    boolean add(Role role);

    boolean update(Role role);

    boolean updateState(String roleId, int isDelete);  // 逻辑删除

    boolean delete(String roleId);  // 物理删除

}
